package com.netease.imageex;

import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.netease.g.b;
import com.netease.image.video.a;
import com.netease.image.video.u;
import com.netease.pris.activity.view.PrisImageView;

public class i extends BaseAdapter
{
  private u a = null;
  private ImageViewScanActivity b = null;
  private LayoutInflater c;
  private CharSequence d;
  private int e;

  public i(ImageViewScanActivity paramImageViewScanActivity, u paramu, int paramInt)
  {
    this.a = paramu;
    this.b = paramImageViewScanActivity;
    this.c = ((LayoutInflater)this.b.getSystemService("layout_inflater"));
    this.e = paramInt;
  }

  public void a()
  {
    if (this.a != null)
    {
      this.a.d();
      this.a = null;
    }
    if (this.d != null)
      this.d = null;
    if (this.c != null)
      this.c = null;
    this.b = null;
  }

  public int getCount()
  {
    if (this.a == null);
    for (int i = 0; ; i = this.a.b())
      return i;
  }

  public Object getItem(int paramInt)
  {
    if (this.a == null);
    for (a locala = null; ; locala = this.a.a(paramInt))
      return locala;
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    b.c("ImageScanAdapter1", "arg0 is: " + paramInt);
    Object localObject;
    PrisImageView localPrisImageView1;
    if (paramView == null)
    {
      PrisImageView localPrisImageView2 = (PrisImageView)this.c.inflate(2130903061, null, false);
      localPrisImageView2.setLongClickable(true);
      localObject = localPrisImageView2;
      if ((localObject instanceof PrisImageView))
      {
        localPrisImageView1 = (PrisImageView)localObject;
        localPrisImageView1.a(this.a.a(paramInt));
        localPrisImageView1.a(this.e);
        this.d = ((a)getItem(paramInt)).g();
        localPrisImageView1.a().scrollTo(0, 0);
        localPrisImageView1.a(new j(this));
        if (!TextUtils.isEmpty(this.d))
          break label164;
        localPrisImageView1.a(false);
        localPrisImageView1.c(null);
      }
    }
    while (true)
    {
      return localObject;
      localObject = paramView;
      break;
      label164: localPrisImageView1.c(this.d.toString());
      localPrisImageView1.a(false);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.imageex.i
 * JD-Core Version:    0.6.0
 */